]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot: Make screenshot tooltips label actors for their widgets
authorLukáš Tyrychtr <ltyrycht@redhat.com>
Thu, 9 Oct 2025 14:27:55 +0000 (16:27 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 9 Oct 2025 17:49:47 +0000 (17:49 +0000)
This ensures that the buttons have a label from their tooltip if we do not
have another label actor already (like from the icon label buttons).

Because no button using a toolltip in this UI has a label on its own,
this is not checked.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3908>

js/ui/screenshot.js

index 4513ff2878ddabbc37c75968049ba84c76df7b6f..209207710b3f34cedc4a4afbda94a6655cda9a27 100644 (file)
@@ -83,6 +83,9 @@ class Tooltip extends St.Label {
             else
                 this.close();
         });
+
+        if (!this._widget.label_actor)
+            this._widget.label_actor = this;
     }
 
     open() {